# encoding: utf-8

import xlrd

class ExcelUtil:
    def __init__(self,filename,sheet=0):
        self.data = xlrd.open_workbook(filename)
        self.table = self.data.sheets()[0]
        self.rows = self.table.nrows

    def close(self):
        self.data.release_resources()
        del self
